/*
 * @Author: 王永存
 * @Date: 2021-08-13 10:19:22
 * @LastEditTime: 2021-08-14 21:13:49
 * @LastEditors: wangyongcun
 * @Description: 框架配置
 * @FilePath: \saaFrame\vite.config.ts
 */
const { name } = require('./package.json') // 项目信息
import { defineConfig } from 'vite'
import path from "path";
import vue from '@vitejs/plugin-vue'
export default defineConfig({
  base: name,
  resolve: {
    alias: {
      "~": path.resolve(__dirname),
      "@": path.resolve(__dirname, "src"),
      "components": path.resolve(__dirname, "src/components"),
    },
  },
  plugins: [vue()],
  server: {
    proxy: {
      '/api': '192.168.100.236'
    }
  },
})